package day7;

public class KeyBoard implements Usb {
    private String brand;
    private int price;

    public KeyBoard(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    @Override
    public void plugin() {
        System.out.println(brand+"牌游戏键盘接入usb口，键盘呼吸灯闪烁，它的价格是"+price+"元");
    }

    @Override
    public void unuplug() {
        System.out.println(brand+"牌键盘拔出usb口，灯光熄灭");
    }

    @Override
    public void work() {
        System.out.println("键盘在被疯狂敲打着,QWER......");
    }
}
